package com.study.firstline.base

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.study.firstline.utils.ActivityCollector

/**
 *
 *  @author hexiao
 *  @date  2023/3/10 14:54
 *  @package com.study.firstline.base
 *  @project FirstLineCodeApp
 *  @desc
 */
open class BaseActivity:AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Log.d("BaseActivity",javaClass.simpleName);
        ActivityCollector.addActivity(this);
    }

    override fun onDestroy() {
        super.onDestroy()
        ActivityCollector.removeActivity(this);
    }
}